<%-- 
    Document   : menu
    Created on : 07-nov-2008, 22:31:16
    Author     : org.@le

--%>

<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <style type="text/css">
        <!--
        body {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
            background-color: #355FCA;
        }
        -->
    </style>
    <head>
        <c:if test="${sessionBean.ejbSession.owner==null}" >
            <jsp:forward page="../login.jsp" />
        </c:if>
        <c:if test="${!sessionBean.ejbSession.owner.adminUser}" >
            <jsp:forward page="../user/homeUser.jsp" />
        </c:if>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
            <h:form>
                <rich:panelMenu width="200px" mode="none">
                    <rich:panelMenuGroup style="border-width:0px; background-color: purple;" label="General information" iconExpanded="chevronUp" iconCollapsed="chevronDown" expanded="true" >
                        <rich:panelMenuItem style="border-width:0px; background-color: #BAD9FE;" icon="/images/users.png" >
                            <h:commandLink value="Manage users" target="admin" action="#{adminBean.adminUsers}"/>
                        </rich:panelMenuItem>
                        <rich:panelMenuItem style="border:0px; background-color: #BAD9FE;" icon="/images/usa.png" >
                            <h:commandLink value="Manage sites" target="admin" action="#{adminBean.adminSites}" />
                        </rich:panelMenuItem>
                        <rich:panelMenuItem style="border-width:0px; background-color: #BAD9FE;" icon="/images/cat.png" >
                            <h:commandLink value="Manage categories" target="admin" action="#{adminBean.adminCategories}"/>
                        </rich:panelMenuItem>
                        <rich:panelMenuItem style="border-width:0px; background-color: #BAD9FE;" icon="/images/flag.png" >
                            <h:commandLink value="Flagged postings" target="admin" action="#{adminBean.adminFPostings}" />
                        </rich:panelMenuItem>
                        
                    </rich:panelMenuGroup>
                    <rich:panelMenuGroup style="border-width:0px; background-color: purple;" label="Security center" iconExpanded="chevronUp" iconCollapsed="chevronDown" expanded="false" >
                        <rich:panelMenuItem style="border-width:0px; background-color: #BAD9FE;" icon="/images/key.png" >
                            <h:commandLink value="Backup database" target="admin" action="#{adminBean.adminBackups}"/>
                        </rich:panelMenuItem>
                    </rich:panelMenuGroup>
                    <%--<rich:panelMenuGroup style="border-width:0px; background-color: purple;" label="Forums management" iconExpanded="chevronUp" iconCollapsed="chevronDown" expanded="false" >
                        <rich:panelMenuItem style="border-width:0px; background-color: #BAD9FE;" icon="/images/text.png" >
                            <h:commandLink value="Manage forums" target="admin" action="adminForums"/>
                        </rich:panelMenuItem>
                        <rich:panelMenuItem style="border-width:0px; background-color: #BAD9FE;" icon="/images/flag.png" >
                            <h:commandLink value="Flags" target="admin" action="adminFlags">
                                <f:setPropertyActionListener target="#{FlagsBean.viewFlag}" value="#{false}" />
                            </h:commandLink>
                        </rich:panelMenuItem>
                    </rich:panelMenuGroup>--%>
                    
                </rich:panelMenu>
            </h:form>
            <h:panelGrid style="font-family: 'Arial','Helvetica',sans-serif; font-size: 10px; width: 100%; bottom: 0px; position: absolute; text-align: center;">
                <h:outputText value="© Copyright 1999-2008, eez2find" />
                <h:outputText value="All rights reserved" />
            </h:panelGrid>
        </f:view>
    </body>
</html>
